﻿using Furion.DataEncryption;
using Furion.DynamicApiController;
using Microsoft.AspNetCore.Authorization;
using System.Collections.Generic;

namespace Project2.Application
{
    /// <summary>
    /// 系统服务接口
    /// </summary>
    [AppAuthorize]
    public class SystemAppService : IDynamicApiController
    {
        private readonly ISystemService _systemService;
        public SystemAppService(ISystemService systemService)
        {
            _systemService = systemService;
        }

        /// <summary>
        /// 获取系统描述
        /// </summary>
        /// <returns></returns>
        public string GetDescription()
        {
            return _systemService.GetDescription();
        }

        [AllowAnonymous]
        public string GetJwt()
        {
            return _systemService.GetJwt();
        }
    }
}